package net.eyra.struts;

import net.eyra.planificador.Planificador;
import net.eyra.utiles.Path;

import org.apache.struts.action.ActionServlet;
import org.apache.struts.action.PlugIn;
import org.apache.struts.config.ModuleConfig;

public class PlanificadorPlugin implements PlugIn {

    public void init(ActionServlet arg0, ModuleConfig arg1) {
        Path.setPathBase(arg0.getServletConfig().getServletContext().getRealPath(""));
        new Planificador(Path.getPathTareas(), 60000).Iniciar();
    }

    @Override
    public void destroy() {
    }
}
